package net.oschina.app.testcase.login;

import android.test.ActivityInstrumentationTestCase2;
import android.util.Log;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

import com.robotium.solo.Solo;

import net.oschina.app.AppStart;
import net.oschina.app.BasicTestCase;

/**
 * Created by Aaron on 2017/5/26.
 */

public class Login1 extends BasicTestCase{

    public void testName() throws Exception {
        helper.getPageNavigation().clickMyTab();
        helper.getPageMyTab().clickLoginIcon();
        helper.getPageLogin().login("helloworld","123456");
        assertTrue(helper.getPageCommon().searchText("用户名或口令错"));
//        /html/body/div/h2[1]/strong/a
    }
}
